<section class="testimonials">
    <h1 class="section-heading text-highlight"><span class="line"> <?php echo lang('testimonials'); ?></span></h1>
    <div class="carousel-controls">
        <a class="prev" href="#testimonials-carousel" data-slide="prev"><i class="fa fa-caret-left"></i></a>
        <a class="next" href="#testimonials-carousel" data-slide="next"><i class="fa fa-caret-right"></i></a>
    </div><!--//carousel-controls-->
    <div class="section-content">
        <div id="testimonials-carousel" class="testimonials-carousel carousel slide">
            <div class="carousel-inner">
                <?php
                $active = 'active';
                $i = 0;
                foreach($testimonials as $testimonial) { 
                    if ($i != 0) {
                        $active = '';
                    }
                ?>
                <div class="item <?php echo $active; ?>">
                    <blockquote class="quote">                                  
                        <p><i class="fa fa-quote-left"></i><?php echo $testimonial->content; ?></p>
                    </blockquote>                
                    <div class="row">
                        <p class="people col-md-8 col-sm-3 col-xs-8"><span class="name"><?php echo $testimonial->name; ?></span><br><span class="title"><?php echo $testimonial->description; ?></span></p>
                        <img class="profile col-md-4 pull-right" src="assets/uploads/testimonials/<?php echo $testimonial->image; ?>" alt="">
                    </div>                               
                </div><!--//item-->
                <?php 
                $i++;
                } ?>
            </div><!--//carousel-inner-->
        </div><!--//testimonials-carousel-->
    </div><!--//section-content-->
</section>